﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="MyShoppingCart.aspx.cs" Inherits="ArtsShop.MyShoppingCart" %>
<asp:Content ID="content1" ContentPlaceHolderID="head" runat="server"></asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div id="ShoppingCartTitle" runat="server" class="ContentHead">Shopping Cart</div>

<asp:GridView ID="gridbasket" runat="server" Width="100%" AutoGenerateColumns="false" CssClass="CartListItem" >
<Columns>
    <asp:TemplateField> 
        <HeaderTemplate> Item </HeaderTemplate>
        <ItemTemplate>
            <asp:HyperLink ID="HyperLinkBasket" EnableViewState="false" CssClass="basketLink" Target="_top" runat="server" NavigateUrl=''>
            
                    <asp:Image ID="imageSmall" EnableViewState="false" runat="server" ImageUrl="" BorderStyle="None" />
                </asp:HyperLink>
        </ItemTemplate>
    </asp:TemplateField>
    <asp:TemplateField HeaderStyle-Width="340" HeaderStyle-HorizontalAlign="Left" ItemStyle-CssClass="basketitem" HeaderStyle-CssClass="basketheader">
            <HeaderTemplate>
                <asp:Label ID="_itemHeader" runat="server">Description</asp:Label>
            </HeaderTemplate>
            <ItemTemplate>
                <h5>
                    <asp:HyperLink ID="HyperLink1" CssClass="elverysmainbasket" runat="server" NavigateUrl=''></asp:HyperLink>
                    <asp:Label ID="_productNameLabel" CssClass="elverysmainbasket" runat="server" Text='' Font-Bold="false" Visible="false"></asp:Label>
                </h5>
            </ItemTemplate>
    </asp:TemplateField>
    <asp:TemplateField HeaderStyle-Width="47" HeaderStyle-HorizontalAlign="Left" HeaderStyle-CssClass="basketheader" ItemStyle-CssClass="basketitem">
         <HeaderTemplate>
                <asp:Label ID="lblQtyTitle" runat="server">Quantity</asp:Label>
         </HeaderTemplate>
         <ItemTemplate>
            <table width="60" height="26" border="1" id="quantityEditView" runat="server" visible="true">
                    <tbody>
                        <tr>
                            <td rowspan="2">
                                <asp:TextBox ID="quantity" ReadOnly="true" runat="server" Text='' MaxLength="3" CssClass="DisplayQuantity" />
                            </td>
                            <td>
                                <asp:ImageButton ID="_upImage" runat="server" ImageUrl="" AlternateText="Up" CommandName="QuantityUp" ToolTip="Increase Quantity" CommandArgument='' />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:ImageButton ID="_downImage" runat="server" ImageUrl="" AlternateText="Down" CommandName="QuantityDown" ToolTip="Decrease Quantity" CommandArgument='' />
                            </td>
                        </tr>
                    </tbody>
                </table>
         </ItemTemplate>

    </asp:TemplateField>
    <asp:TemplateField HeaderStyle-Width="60" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" HeaderStyle-CssClass="basketheader" ItemStyle-CssClass="basketitem">
            <HeaderTemplate>
                <asp:Label ID="lblPriceTitle" runat="server">Unit Price</asp:Label></HeaderTemplate>
            <ItemTemplate>
                <asp:Label ID="price" runat="server" CssClass="basketText" />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderStyle-Width="55" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" HeaderStyle-CssClass="basketheader" ItemStyle-CssClass="basketitem">
            <HeaderTemplate>
                <asp:Label ID="lblTotalTitle" runat="server">Total Price</asp:Label></HeaderTemplate>
            <ItemTemplate>
                <asp:Label ID="priceAll" runat="server" Text="" CssClass="basketText" />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderStyle-Width="41" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" HeaderStyle-CssClass="basketheader" ItemStyle-CssClass="basketitem">
            <HeaderTemplate>
                <asp:Label ID="lblRemoveTitle" runat="server">Remove</asp:Label></HeaderTemplate>
            <ItemTemplate>
                <asp:LinkButton ID="_removeItem" runat="server" CommandName="DeleteProduct" CommandArgument=''
                    ToolTip="Remove Product" CssClass="removeBttn"></asp:LinkButton>
            </ItemTemplate>
        </asp:TemplateField>
</Columns>
</asp:GridView>
<asp:Panel ID="_basketTotalPanel" runat="server">
    <table cellspacing="0" cellpadding="0" border="0" align="right" width="100%" class="basketamount">
        <tbody>
            <tr>
                <td class="basketFooterLinks">
                    <asp:LinkButton ID="btnViewDeliveryCharges" runat="server" OnClick="ViewDeliveryCharges_Click" ToolTip="View delivery charges">View delivery charges</asp:LinkButton>
                </td>
                <td>
                    <div class="basketRightWithPadding">
                        <asp:Label ID="totalDiscountLabel" Text="TOTAL DISCOUNT" runat="server" CssClass="red12bold" Visible="true" />
                        <asp:Label ID="totalDiscount" Text="" CssClass="red12bold" runat="server" />&nbsp;&nbsp;&nbsp; </span> 
                        <span class="black12bold">SUBTOTAL
                            <asp:Label ID="totalPrice" Text="" runat="server" />&nbsp;&nbsp;&nbsp; </span>
                        <asp:LinkButton CssClass="basketFooterLinks" ID="_removeAll" runat="server" OnClick="RemoveAll_Click" ToolTip="Remove all Items from basket">Remove all</asp:LinkButton>
                    </div>
                </td>
            </tr>
        </tbody>
    </table>
    <div class="clearboth">
    </div>
</asp:Panel>
</asp:Content>